package net.oschina.app.protocol;

import net.oschina.app.base.BaseProtocol;
import net.oschina.app.bean.MoveNewBean;

import retrofit2.Call;

/**
 * Created by wei03 on 2017/1/14.
 */
public class TweetNewProtocol extends BaseProtocol<MoveNewBean> {
    private String mPageIndex="0";
    private String mUid="0";
    private String mPageSize="20";

    public TweetNewProtocol(String uid) {
        mUid = uid;
    }

    @Override
    protected Call<MoveNewBean> getCall(String pageIndex) {
        mPageIndex = pageIndex;
        return mApiService.getMoveNewBean(mUid,mPageIndex,mPageSize);
    }

    @Override
    protected MoveNewBean parserDatas(String data) {
        return null;
    }

    @Override
    protected String getIndex() {
        return mPageIndex;
    }

    @Override
    protected String getType() {
        return "tweet_list";
    }
}
